import http from "../util/request";
//wx 获得openid
export function login(data) {
    return http('/wx/wxLogin',data,false,'POST')
}

//登录信息
export function addUserInfo(data) {
    return http('/wx/user',data,true,'POST')
}

//上传头像
export  function uploadAvatar(data) {
    return http('/oss/uploadFile',data,true,'POST')
}

//查询用户信息，头像等
export function queryUserInfo() {
    return http('/wx/user/getInfoByOpenId',null,true,'GET')
}